package com.starlink.model.dtomapper;

import com.starlink.model.domain.CheckInRecordsDO;
import com.starlink.model.request.CheckInRecordsRequest;
import com.starlink.model.vo.CheckInRecordsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface CheckInRecordsDtoMapper {

    CheckInRecordsDtoMapper INSTANCE = Mappers.getMapper(CheckInRecordsDtoMapper.class);

    /**
    * DO to VO
    * @param checkInRecordsDO
    * @return
    */
    CheckInRecordsVO do2VO(CheckInRecordsDO checkInRecordsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    CheckInRecordsDO request2DO(CheckInRecordsRequest request);
}
